import Http  from './http';
import Api  from './api';

class GoodsService {

  static hotList(data) {
    return Http.request({
      url:Api.Goods.hotList,
      method:'GET',
      data:data
    });
  }

  static goodsListByGrade(data) {
    return Http.request({
      url:Api.Goods.goodsListByGrade,
      method:'GET',
      data:data
    });
  }

  static get(data) {
    return Http.request({
      url:Api.Goods.get,
      method:'GET',
      data:data
    });
  }

  static getBuyInfo(data) {
    return Http.request({
      url:Api.Goods.getBuyInfo,
      method:'GET',
      data:data
    });
  }

  static getSku(data) {
    return Http.request({
      url:Api.Goods.getSku,
      method:'GET',
      data:data
    });
  }

  static addOrUpdateKjGoodsCustomerItem(data) {
    return Http.request({
      url:Api.Goods.addOrUpdateKjGoodsCustomerItem,
      method:'POST',
      data:data
    });
  }

  static judgeMoney(data) {
    return Http.request({
      url:Api.Goods.judgeMoney,
      method:'GET',
      data:data
    });
  }

  static getAlllAddOn(data) {
    return Http.request({
      url:Api.Goods.getAlllAddOn,
      method:'GET',
      data:data
    });
  }
  static getBrandsAddOn(data) {
    return Http.request({
      url:Api.Goods.getBrandsAddOn,
      method:'GET',
      data:data
    });
  }

  static getFavListByCustomerId(data) {
    return Http.request({
      url:Api.Goods.getFavListByCustomerId,
      method:'GET',
      data:data
    });
  }

  static addFav(data) {
    return Http.request({
      url:Api.Goods.addFav,
      method:'GET',
      data:data
    });
  }

  static cancelFav(data) {
    return Http.request({
      url:Api.Goods.cancelFav,
      method:'GET',
      data:data
    });
  }

}
export default GoodsService;
